from ronglian_sms_sdk import SmsSDK
import json
def sendMsg(mobile,code):
    return True
    accId = "8aaf070883c5db6a0183f8a97ba808d6"
    accToken = "f4fbc7bba47a4a49820e0c07f46adf5b"
    appId = "8aaf070883c5db6a0183f8a97c8108dd"
    sdk = SmsSDK(accId,accToken,appId)
    tid ='1'
    # 测试模板id为: 1.内容为: [云通讯您的验证码是1，请于2分钟内正确输入。# mobile =13303479527!
    datas = (code,5) # 模板中的参数按照位置传递
    resp = sdk.sendMessage(tid, mobile, datas )
    mes = json.loads(resp.text)
    if mes['status'] == '000000':
        return True
    return False